package com.pentofab.payrollmanagement.database;

import java.util.ArrayList;
import java.util.HashMap;

import com.pentofab.payrollmanagement.dao.model.Holiday;
import com.pentofab.payrollmanagement.dao.model.Leave;
import com.pentofab.payrollmanagement.exception.BusinessException;
import com.pentofab.payrollmanagement.exception.ExceptionMsg;

public interface LeaveRepository extends ExceptionMsg{

	public float getLeaveBalance(String empId, String leaveType) throws Exception;
	public void applyforLeave(Leave leaveObject) throws Exception;
	public ArrayList<Leave> getLeaveHistory(String empId) throws Exception;
	public void deleteLeave(String empId, String from_DATE, String to_DATE) throws Exception;
	public boolean empOnLeave(String empId,String date) throws Exception;
	public ArrayList<Holiday> getHolidays() throws Exception;
	public void addholiday(String date,String description, boolean isNationalHoliday) throws Exception;
	public void deleteHoliday(String date) throws Exception;
	public HashMap<String, String> getLeaveFromMaster() throws BusinessException;
	
}
